<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/style.css" />
    <script type="text/javascript" src="__JS__/jquery.js"></script>
    <script type="text/javascript" src="__JS__/jquery.sorted.js"></script>
    <script type="text/javascript" src="__JS__/bootstrap.js"></script>
    <script type="text/javascript" src="__JS__/ckform.js"></script>
    <script type="text/javascript" src="__JS__/common.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>

<h2>分类列表</h2><button type="button" class="btn btn-success" id="addnew">新增分类</button>
<table class="table table-bordered table-hover definewidth m10" style="width:500px;margin-left:50px;" >
    <thead  >
    <tr>
        <th colspan ="2">分类</th>
        
    </tr>
    </thead>
     <if condition = "count($sort) != 0">
    <volist name="sort" id="vo">
	     <tr>
            <td>{$vo.name}</td>
            <td style=" text-align: center;">
                  <a href="/Admin/Sort/edit?id={$vo.id}">编辑</a>
                  
            </td>
        </tr>
     </volist>
     <else />
     <tr>
     <td colspan = '2'>
     <span>现无分类</span>
     </td>
     </tr>
     </if>
      
      </table>
      
<div class="inline pull-right page">
</div>
</body>
</html>
<script>
    $(function () {
        
		$('#addnew').click(function(){

				window.location.href="/Admin/sort/add";
		 });


    });

	function del(id)
	{
		
		
		if(confirm("确定要删除吗？"))
		{
		
			var url = "index.html";
			
			window.location.href=url;		
		
		}
	
	
	
	
	}
</script>